package io.lkt.task.bus.service.impl;

import io.lkt.task.bus.mapper.LookArticleInfoMapper;
import io.lkt.task.bus.model.LookArticleInfo;
import io.lkt.task.bus.service.ILookArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LookArticleServiceImpl implements ILookArticleService {

    @Autowired
    private LookArticleInfoMapper lookArticleInfoMapper;

    @Override
    public Integer getLookArticleUserCount(Integer userId) {
        return lookArticleInfoMapper.queryLookArticleUserCount(userId);
    }

    @Override
    public int recordLookArticleInfo(LookArticleInfo lookArticleInfo) {
        return lookArticleInfoMapper.addLookArticleInfo(lookArticleInfo);
    }
}
